<?php
namespace BP\Sys;
require_once("BP/En/Map.php");
class EnCfg extends EntityNo {
	public function getUI () 
	{
		return $this->GetValStringByKey(EnCfgAttr::$UI);
	}
	public function setUI ($value) // [String value]
	{
		$this->SetValByKey(EnCfgAttr::$UI, $value);
	}
	public function getDatan () 
	{
		return $this->GetValStringByKey(EnCfgAttr::$Datan);
	}
	public function setDatan ($value) // [String value]
	{
		$this->SetValByKey(EnCfgAttr::$Datan, $value);
	}
	public function getGroupTitle () 
	{
		return $this->GetValStringByKey(EnCfgAttr::$GroupTitle);
	}
	public function setGroupTitle ($value) // [String value]
	{
		$this->SetValByKey(EnCfgAttr::$GroupTitle, $value);
	}
	public function getFJSavePath () 
	{
		$str = $this->GetValStringByKey(EnCfgAttr::$FJSavePath);
		if ((($str . NULL) . $str->equals("")))
		{
			return ((SystemConfig::getPathOfDataUser() + $this->getNo()) . "\\");
		}
		return $str;
	}
	public function setFJSavePath ($value) // [String value]
	{
		$this->SetValByKey(EnCfgAttr::$FJSavePath, $value);
	}
	public function getFJWebPath () 
	{
		$str = $this->GetValStringByKey(EnCfgAttr::$FJWebPath);
		if ((($str . NULL) . $str->equals("")))
		{
			return (((Glo->getRequest()->getRemoteHost() . "/DataUser/") . $this->getNo()) . "/");
		}
		$str = $str->replace("\\", "/");
		if (!$str->endsWith("/"))
		{
			$str += "/";
		}
		return $str;
	}
	public function setFJWebPath ($value) // [String value]
	{
		$this->SetValByKey(EnCfgAttr::$FJWebPath, $value);
	}
	public function getPageSizeOfBatch () 
	{
		return $this->GetParaInt("PageSizeOfBatch", 600);
	}
	public function setPageSizeOfBatch ($value) // [int value]
	{
		$this->SetPara("PageSizeOfBatch", $value);
	}
	public function getPageSizeOfSearch () 
	{
		return $this->GetParaInt("PageSizeOfSearch", 15);
	}
	public function setPageSizeOfSearch ($value) // [int value]
	{
		$this->SetPara("PageSizeOfSearch", $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($enName) // [String enName]
	{
		$me = new self();
		$me->setNo($enName);
		try 
		{
			$me->Retrieve();
		}
		catch (\RuntimeException $ex)
		{ /* empty */ }
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_EnCfg", "实体配置");
		$map->Java_SetDepositaryOfEntity($Depositary->Application);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetEnType($EnType->Sys);
		$map->AddTBStringPK(EnCfgAttr::$No, NULL, "实体名称",  TRUE ,  FALSE , 1, 100, 60);
		$map->AddTBString(EnCfgAttr::$GroupTitle, NULL, "分组标签",  TRUE ,  FALSE , 0, 2000, 60);
		$map->AddTBString(EnCfgAttr::$Url, NULL, "要打�?的Url",  TRUE ,  FALSE , 0, 500, 60);
		$map->AddTBString(EnCfgAttr::$FJSavePath, NULL, "保存路径",  TRUE ,  FALSE , 0, 100, 60);
		$map->AddTBString(EnCfgAttr::$FJWebPath, NULL, "附件Web路径",  TRUE ,  FALSE , 0, 100, 60);
		$map->AddTBString(EnCfgAttr::$Datan, NULL, "字段数据分析方式",  TRUE ,  FALSE , 0, 200, 60);
		$map->AddTBString(EnCfgAttr::$UI, NULL, "UI设置",  TRUE ,  FALSE , 0, 2000, 60);
		$map->AddTBAtParas(3000);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
